#include <dolphin/socket.h>
#define SO_PF_INET 2 // ARPA Internet protocols
typedef struct SOHostEnt
{
char* name; // official name of host
char** aliases; // alias list (zero-terminated)
s16 addrType; // always SO_PF_INET
s16 length; // length of address
u8** addrList; // list of addresses
} SOHostEnt;
Note: In the current socket library implementation,
both SOGetHostByAddr and
SOGetHostByName do not retreive the list
of aliases in the aliases field.